package cn.niit.letuseatdemo.service;


import cn.niit.letuseatdemo.entity.domain.UserOrder;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: JinNa ToDo
 * @Date: 2022/11/06/16:54
 * @Description:
 */
public interface UserOrderService {
    /*
    * @Description: 查询订单
     * @param: orderId 订单主键
     * @return: 订单
    **/

    public UserOrder selectUserOrderByOrderId(Integer orderId);

    /*
    * @Description: 订单列表
     * @param: userOrder
     * @return: java.util.List<cn.niit.letuseatdemo.entity.domain.UserOrder>
    **/
    public List<UserOrder> selectUserOrderList(UserOrder userOrder);

    /*
    * @Description: 新增订单
     * @param: userOrders
    **/
    public int insert(UserOrder userOrders);

    /*
    *  @Description: 删除订单${TODO}
     * @param: orderId 订单主键
     * @return: 结果
    **/
    public int deleteUserOrderByOrderId(Integer orderId);

    /*
    * @Description: 订单状态
     * @param: orderId
     * @return: cn.niit.letuseatdemo.entity.domain.UserOrder
    **/
    int updateUserOrderStatus(UserOrder userOrder);
}